-
Notifications
You must be signed in to change notification settings - Fork 31
Align Laminar runs with CI eval IDs #362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
|
@OpenHands /codereview-roasted We should not add any useless complexity or useless code to the code |
|
I'm on it! simonrosenberg can track my progress at all-hands.dev |
Code Review Summary for PR #362I reviewed the PR diff and inspected the Laminar SDK source code to understand how it works. Here's my assessment: 🔴 Verdict: Needs ReworkThe PR has fundamental issues - the core mechanism is broken because it attempts to set trace session IDs and metadata at a point where no trace/span exists. Critical Issues Found:
Recommended Fix:The session ID and metadata should be set inside def create_evaluation_datapoint(
self,
eval_id: UUID | None,
data: Any,
metadata: dict[str, Any],
index: int,
session_id: str | None = None,
trace_metadata: dict[str, Any] | None = None,
) -> tuple[UUID | None, str | None]:
# ...
eval_span = Laminar.start_active_span("Evaluation", span_type="EVALUATION")
# NOW there's an active span - set session ID and metadata here
if session_id:
Laminar.set_trace_session_id(session_id)
if trace_metadata:
Laminar.set_trace_metadata(trace_metadata)
# ...Then remove all the useless No code changes were made - this was a code review only as requested. The PR author should address these issues before merging. |
Co-authored-by: openhands <openhands@all-hands.dev>
3b25a95 to
140c173
Compare
juanmichelini
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Summary
Testing